// 创建 新标签：“Works” .
class viodworks extends HTMLElement {
  constructor() {
    super();
    this.style.display = 'block';
    // 创建封闭渲染层
    this.attachShadow({ mode: 'open' });
    this.shadowRoot.innerHTML = `
      <div>
        <slot></slot>
      </div>
    `;
  }
  connectedCallback() {
    while (this.firstChild) {
      this.shadowRoot.appendChild(this.firstChild);
    }
  }
}
// 3. 注册自定义标签（必须包含连字符 -）
customElements.define('viod-works',viodworks);